package club.ruanx.movie.service;

import club.ruanx.bean.PageBean;
import club.ruanx.core.service.base.BaseService;
import club.ruanx.movie.entity.Person;
import club.ruanx.movie.param.PersonParam;
import org.springframework.data.domain.Page;

/**
 * @author 阮胜
 * @date 2018/10/22 14:51
 */
public interface PersonService extends BaseService<Person,String> {
    Person save(PersonParam personParam);

    Page<Person> findByProfession(Integer profession, PageBean pageBean);

    boolean existsBySpiderId(String spiderId);

    Page<Person> findAllWherePhotosNotEmpty(PageBean pageBean);
}
